package memorphic.slide.debugger.views
{
	import memorphic.slide.IStateView;
	import memorphic.slide.SlidePresModelBase;
	import memorphic.slide.debugger.HighlightFilterLevel;
	import memorphic.slide.debugger.IDebuggerAppContext;
	import memorphic.slide.debugger.OverlayOptions;

	public class OverlayOptionsViewPresModel extends SlidePresModelBase
	{
		[Bindable]
		public var context:IDebuggerAppContext;
	
		[Trigger(path="context.overlayOptions")]
		[Bindable]
		public var overlayOptions:OverlayOptions;
		
		
		[Bindable]
		public var overlayFilters:Array = [
			{label:"Slide Views", value:HighlightFilterLevel.SLIDE_VIEWS},
			{label:"Containers", value:HighlightFilterLevel.CONTAINERS}, 
			{label:"Everything", value:HighlightFilterLevel.EVERYTHING},
			{label:"Nothing", value:HighlightFilterLevel.NONE} 
		];
		

		public function OverlayOptionsViewPresModel(view:IStateView)
		{
			super(view);
			context = view as IDebuggerAppContext;
		}
		
		protected override function initView():void
		{
			// TODO: Add initialisation code here
		}
		
		

		
		public function filterSelected(value:int):void
		{
			context.overlayOptions.highlightFilterLevel = value;
		}
	}
}